package com.neu.carbon.myplan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neu.carbon.myplan.mapper.WmsOutWarehouseApplyMapper;
import com.neu.carbon.myplan.domain.WmsOutWarehouseApply;
import com.neu.carbon.myplan.service.IWmsOutWarehouseApplyService;

/**
 * 出库申请Service业务层处理
 * 
 * @author neuedu
 * @date 2025-03-18
 */
@Service
public class WmsOutWarehouseApplyServiceImpl implements IWmsOutWarehouseApplyService 
{
    @Autowired
    private WmsOutWarehouseApplyMapper wmsOutWarehouseApplyMapper;

    /**
     * 查询出库申请
     * 
     * @param id 出库申请ID
     * @return 出库申请
     */
    @Override
    public WmsOutWarehouseApply selectWmsOutWarehouseApplyById(Long id)
    {
        return wmsOutWarehouseApplyMapper.selectWmsOutWarehouseApplyById(id);
    }

    /**
     * 查询出库申请列表
     * 
     * @param wmsOutWarehouseApply 出库申请
     * @return 出库申请
     */
    @Override
    public List<WmsOutWarehouseApply> selectWmsOutWarehouseApplyList(WmsOutWarehouseApply wmsOutWarehouseApply)
    {
        return wmsOutWarehouseApplyMapper.selectWmsOutWarehouseApplyList(wmsOutWarehouseApply);
    }

    /**
     * 新增出库申请
     * 
     * @param wmsOutWarehouseApply 出库申请
     * @return 结果
     */
    @Override
    public int insertWmsOutWarehouseApply(WmsOutWarehouseApply wmsOutWarehouseApply)
    {
        return wmsOutWarehouseApplyMapper.insertWmsOutWarehouseApply(wmsOutWarehouseApply);
    }

    /**
     * 修改出库申请
     * 
     * @param wmsOutWarehouseApply 出库申请
     * @return 结果
     */
    @Override
    public int updateWmsOutWarehouseApply(WmsOutWarehouseApply wmsOutWarehouseApply)
    {
        return wmsOutWarehouseApplyMapper.updateWmsOutWarehouseApply(wmsOutWarehouseApply);
    }

    /**
     * 批量删除出库申请
     * 
     * @param ids 需要删除的出库申请ID
     * @return 结果
     */
    @Override
    public int deleteWmsOutWarehouseApplyByIds(Long[] ids)
    {
        return wmsOutWarehouseApplyMapper.deleteWmsOutWarehouseApplyByIds(ids);
    }

    /**
     * 删除出库申请信息
     * 
     * @param id 出库申请ID
     * @return 结果
     */
    @Override
    public int deleteWmsOutWarehouseApplyById(Long id)
    {
        return wmsOutWarehouseApplyMapper.deleteWmsOutWarehouseApplyById(id);
    }
}
